<!DOCTYPE html>
<html lang="en-gb" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Switcher - UIkit tests</title>
        <script src="js/test.js"></script>
    </head>

    <body>

        <div class="uk-container">

            <h1>Switcher</h1>

            <div>

                <ul class="uk-tab" uk-switcher="animation: uk-animation-fade">
                    <li><a href="#">Active</a></li>
                    <li><a href="#">Item</a></li>
                    <li><a href="#">Item</a></li>
                    <li class="uk-disabled"><a>Disabled</a></li>
                </ul>

                <ul class="uk-switcher uk-margin">
                    <li>Hello! <a href="#" uk-switcher-item="2">Switch to tab 3</a></li>
                    <li>Hello again! <a href="#" uk-switcher-item="next">Next tab</a></li>
                    <li>Bazinga! <a href="#" uk-switcher-item="previous">Previous tab</a></li>
                    <li>You will never see me!</li>
                </ul>

                <ul class="uk-switcher uk-margin">
                    <li>Hello! The first item.</li>
                    <li>Hello again! The second item.</li>
                    <li>Bazinga! The third item.</li>
                    <li>You will never see me!</li>
                </ul>

            </div>

            <h2>Animations</h2>

            <div class="uk-child-width-1-4@m" uk-grid>
                <div>

                    <h3>Fade</h3>

                    <ul uk-tab="animation: uk-animation-fade">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Bottom</h3>

                    <ul uk-tab="animation: uk-animation-slide-bottom">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Left</h3>

                    <ul uk-tab="animation: uk-animation-slide-left">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Right</h3>

                    <ul uk-tab="animation: uk-animation-slide-right">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Horiontal</h3>

                    <ul uk-tab="animation: uk-animation-slide-left, uk-animation-slide-right">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Vertical</h3>

                    <ul uk-tab="animation: uk-animation-slide-top, uk-animation-slide-bottom">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Left Small</h3>

                    <ul uk-tab="animation: uk-animation-slide-left-small">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Slide Right Small</h3>

                    <ul uk-tab="animation: uk-animation-slide-right-small">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher uk-margin">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
            </div>

            <h2>Other Components</h2>

            <div class="uk-child-width-1-2@m" uk-grid>
                <div>

                    <h3>Tab Left</h3>

                    <div uk-grid>
                        <div class="uk-width-auto@m">

                            <ul class="uk-tab-left" uk-tab="connect: #component-tab-left; animation: uk-animation-fade">
                                <li><a href="#">Active</a></li>
                                <li><a href="#">Item</a></li>
                                <li><a href="#">Item</a></li>
                            </ul>

                        </div>
                        <div class="uk-width-expand@m">

                            <ul id="component-tab-left" class="uk-switcher">
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                            </ul>

                        </div>
                    </div>

                </div>
                <div>

                    <h3>Tab Right</h3>

                    <div uk-grid>
                        <div class="uk-width-auto@m uk-flex-last@m">

                            <ul class="uk-tab-right" uk-tab="connect: #component-tab-right; animation: uk-animation-fade">
                                <li><a href="#">Active</a></li>
                                <li><a href="#">Item</a></li>
                                <li><a href="#">Item</a></li>
                            </ul>

                        </div>
                        <div class="uk-width-expand@m">

                            <ul id="component-tab-right" class="uk-switcher">
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                            </ul>

                        </div>
                    </div>

                </div>
                <div>

                    <h3>Button</h3>

                    <p uk-switcher="animation: uk-animation-fade; toggle: > *">
                        <a class="uk-button uk-button-default" href="#">Link</a>
                        <button class="uk-button uk-button-default" type="button">Button</button>
                        <button class="uk-button uk-button-default" type="button">Button</button>
                    </p>

                    <ul class="uk-switcher">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Button Group</h3>

                    <p>
                        <div class="uk-button-group" uk-switcher="connect: #component-button-group; animation: uk-animation-fade; toggle: > *">
                            <a class="uk-button uk-button-default" href="#">Link</a>
                            <button class="uk-button uk-button-default" type="button">Button</button>
                            <button class="uk-button uk-button-default" type="button">Button</button>
                        </div>
                    </p>

                    <ul id="component-button-group" class="uk-switcher">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
                <div>

                    <h3>Nav</h3>

                    <div uk-grid>
                        <div class="uk-width-1-3@m">

                            <ul class="uk-nav uk-nav-default" uk-switcher="connect: #component-nav; animation: uk-animation-fade">
                                <li><a href="#">Active</a></li>
                                <li><a href="#">Item</a></li>
                                <li class="uk-nav-header">Header</li>
                                <li><a href="#">Item</a></li>
                            </ul>

                        </div>
                        <div class="uk-width-2-3@m">

                            <ul id="component-nav" class="uk-switcher">
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                                <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
                            </ul>

                        </div>
                    </div>

                </div>
                <div>

                    <h3>Subnav Pill</h3>

                    <ul class="uk-subnav uk-subnav-pill" uk-switcher="animation: uk-animation-fade">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Item</a></li>
                        <li><a href="#">Item</a></li>
                    </ul>

                    <ul class="uk-switcher">
                        <li>Hello!</li>
                        <li>Hello again!</li>
                        <li>Bazinga!</li>
                    </ul>

                </div>
            </div>

            <h2>JavaScript Options</h2>

            <div class="uk-overflow-auto">
                <table class="uk-table uk-table-striped">
                    <thead>
                        <tr>
                            <th>Option</th>
                            <th>Value</th>
                            <th>Default</th>
                            <th>Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code>connect</code></td>
                            <td>CSS selector</td>
                            <td>~.uk-switcher</td>
                            <td>Related items container. By default succeeding elements with class 'uk-switcher'.</td>
                        </tr>
                        <tr>
                            <td><code>toggle</code></td>
                            <td>CSS selector</td>
                            <td>> * > :first-child</td>
                            <td>Toggle selector - triggers content switching on click.</td>
                        </tr>
                        <tr>
                            <td><code>active</code></td>
                            <td>Number</td>
                            <td>0</td>
                            <td>Active index on init. (Providing a negative number indicates a position starting from the end of the set)</td>
                        </tr>
                        <tr>
                            <td><code>animation</code></td>
                            <td>String</td>
                            <td>false</td>
                            <td>The space separated names of animations to use. (Comma separate for animation out)</td>
                        </tr>
                        <tr>
                            <td><code>duration</code></td>
                            <td>Number</td>
                            <td>200</td>
                            <td>The animation duration.</td>
                        </tr>
                        <tr>
                            <td><code>swiping</code></td>
                            <td>Boolean</td>
                            <td>true</td>
                            <td>Use swiping.</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>

    </body>
</html>
